x86/HVM: prefer is_..._domain() over is_..._vcpu()
authorJan Beulich <jbeulich@suse.com>
Fri, 12 Jun 2015 10:03:56 +0000 (12:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 12 Jun 2015 10:03:56 +0000 (12:03 +0200)
commitc6e24bdc1bcd6c7736326ddc24104a597e754103
tree9ee05e3633a1bfd13921e02752d889b4700d8602
parent67a35cd752741d855b177b4d7b11b5ec80707e00
x86/HVM: prefer is_..._domain() over is_..._vcpu()

... when the domain pointer is already available or such operations
occur frequently in a function.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/vmx/vmcs.c